.Home {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: #e8e8e8;

  .ImageFrameList {
    flex: 1;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    .top-tool-btn-list {
      --size: 53px;
      height: calc(var(--size));
      border-bottom: 1px solid #ccc;
      overflow-x: auto;
      overflow-y: hidden;
      .top-tool-btn-list-inner {
        display: flex;
        gap: 1px;
        width: fit-content;
      }

      .item {
        height: var(--size);
        width: calc(var(--size) * 1.4);
        display: flex;
        margin: 0;
        padding: 0 5px;
        border-radius: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        .icon {
          width: 26px;
          height: 26px;
          fill: #4f4f4f;
          margin-bottom: 3px;
          margin-top: 3px;
          transition: 0.3s;
        }
        span {
          height: 22px;
          font-size: 11px;
          color: #4f4f4f;
          white-space: pre-wrap;
          display: block;
          line-height: 11px;
          align-content: center;
          margin-top: -22px;
          opacity: 0;
          transition: 0.2s;
          transform: translateY(-44px);
        }
        .more-list {
          position: absolute;
          background-color: white;
          left: 5px;
          top: 92%;
        }
        // &:hover {
        .icon {
          width: 22px;
          height: 22px;
        }
        span {
          opacity: 1;
          margin-top: 0px;
          transform: translateY(0px);
        }
        // }
      }
    }

    .cont-view {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      &:focus {
        outline: none;
      }
      .empty {
        margin: auto;
        font-size: 13px;
        color: #999;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        .icon {
          width: 50px;
          height: 50px;
        }
      }

      .image-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(
          auto-fill,
          minmax(var(--image-width), 1fr)
        );
        padding: 5px;
        gap: 5px;

        .image-item {
          cursor: pointer;
          background-color: white;
          width: var(--image-width);
          overflow: hidden;
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 5px;
          padding-bottom: 1px;
          margin: 0;
          gap: 5px;
          transition: 0.5s;
          height: auto;
          border-radius: 0;
          box-shadow: none;
          border: 1px solid transparent;
          &.select {
            border: 1px solid var(--hover-color);
            background-color: var(--hover-color);
          }
          &:active {
            transform: scale(0.95);
          }
          .img {
            background-size: 30px 30px;
            background-position: 0 0, 15px 15px;
            image-rendering: pixelated;
            background-image: linear-gradient(
                45deg,
                #d0d0d0 26%,
                transparent 0,
                transparent 75%,
                #d0d0d0 0
              ),
              linear-gradient(
                45deg,
                #d0d0d0 26%,
                transparent 0,
                transparent 75%,
                #d0d0d0 0
              );
            width: calc(var(--image-width) - 10px);
            user-select: none;
          }
          span {
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            font-size: 12px;
            color: #666;
            line-height: 18px;
            text-align: center;
          }
        }
      }
    }
  }

  .DisplayView {
    width: 400px;
    overflow-y: auto;
    .DisplayView-inner {
      min-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    canvas {
      margin-top: 20px;
      width: 90%;
      border: 1px solid var(--hover-color);
      background-size: 30px 30px;
      background-position: 0 0, 15px 15px;
      image-rendering: pixelated;
      background-image: linear-gradient(
          45deg,
          #d0d0d0 26%,
          transparent 0,
          transparent 75%,
          #d0d0d0 0
        ),
        linear-gradient(
          45deg,
          #d0d0d0 26%,
          transparent 0,
          transparent 75%,
          #d0d0d0 0
        );
      user-select: none;
    }
    .detail-view {
      width: 95%;
      display: flex;
      gap: 7px;
      flex-direction: column;
    }

    .input-box {
      display: flex;
      align-items: center;
      width: fit-content;
      gap: 5px;
      .label {
        width: 110px;
        text-align: right;
        font-size: 13px;
        &::after {
          content: ':';
        }
      }
      .input {
        background-color: white;
        border: 1px solid #ccc;
        outline: none;
        height: 30px;
        padding: 0 5px;
        width: 100px;
        text-align: center;
        border-radius: 5px;
      }
    }

    .play-box {
      background-color: white;
      border: 1px solid #bfbfbf;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      border-radius: 50px;
      height: auto;
      width: 40px;
      height: 40px;
      svg {
        fill: #4f4f4f;
      }
    }
  }
}
